<script>
export default {
  onLaunch: function () {
    console.log('App Launch')
     // 检查本地是否已有 openid
    const openid = uni.getStorageSync("openid");
    if (openid) {
		//直接跳转到主页
		uni.redirectTo({
		  url: '/pages/index/index',
		});
      
    } else {
		uni.redirectTo({
		  url: "/pages/login/login",
		});
    }
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  },
}
</script>

<style>
/*每个页面公共css */
</style>
